<?php

/* @project : Template
 * @auther  : 大梦
 * @date    : 2020/12/08
 * @desc    : 优秀员工
 */

namespace app\common\model;

class VoteStaff extends Base
{
    protected $autoWriteTimestamp = true;

    /**
     * 获取本期优秀员工列表
     * @author Meng
     * @dateTime 2020-12-08
     * @return   [type]     [description]
     */
    public function getExcellentStaffList()
    {
        $where = [
            ['is_valid', 'eq', 1],
            ['is_del', 'eq', 0],
        ];
        $list = $this->where($where)->order(['id' => 'desc'])->select();
        return $list;
    }

}
